public class SummationRepetition {
    //方法的重载：名字一样，参数列表不一样，返回值不一样
    public static int sum(int a , int b) {
        return a+b;
    }
    public static double sum(double a,double b,double c) {
        return a+b+c;
    }
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        double c = 1.65;
        double d = 2.59;
        double e = 6.67;
        System.out.println(sum(a,b));
        System.out.println(sum(c,d,e));
    }
}
